package cn.hxzy.common;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Getter
public enum ServiceType {


    serviceType_01(101, "招采"),
    serviceType_02(102, "直采"),
    serviceType_03(103, "委托"),
    serviceType_04(104, "竞价");

    private Integer serviceType;
    private String serviceTypeName;

    public static String getServiceTypeValue(int index) {
        for (ServiceType value : ServiceType.values()) {
            if (value.getServiceType() == index) {
                return value.getServiceTypeName();
            }
        }
        return null;
    }
}
